<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>航空票务系统-首页</title>
	<script type="text/javascript" src="<%=basePath%>js/jquery-1.3.1.js"></script>
	<link rel="stylesheet" type="text/css" href="<%=basePath%>css/showTickets.css">
	<link href="<%=basePath%>css/web.css" rel="stylesheet" type="text/css" />
	<link href="<%=basePath%>css/index.css" rel="stylesheet" type="text/css" />
	<link rel="stylesheet" type="text/css" href="<%=basePath%>js/calendar/skins/aqua/theme.css"/>
		<script type="text/javascript" src="<%=basePath%>js/scrollNotice.js"></script>
			<script type="text/javascript" src="<%=basePath%>js/calendar/calendar.js"></script>
	<script type="text/javascript" src="<%=basePath%>js/calendar/calendar-setup.js"></script>
	<script type="text/javascript" src="<%=basePath%>js/calendar/lang/calendar-zh_CN.js"></script>
	<script type="text/javascript" src="<%=basePath%>js/flash.js"></script>
	 <link rel="stylesheet" type="text/css" href="<%=basePath%>css/jquery.suggest.css">
	 <script type="text/javascript" src="<%=basePath%>js/jquery-1.4.2.min.js"></script>
	 <script type="text/javascript" src="<%=basePath%>js/j.dimensions.js"></script>
	 <script type="text/javascript" src="<%=basePath%>js/aircity.js"></script>
	 <script type="text/javascript" src="<%=basePath%>js/j.suggest.js"></script>
	 <script type="text/javascript">
	 $(function() {
	 $("#start_flight").suggest(citys,{hot_list:commoncitys,dataContainer:'#arrcity_3word',onSelect:function(){$("#end_flight").click();}, attachObject:'#suggest'});
	$("#end_flight").suggest(citys,{hot_list:commoncitys,attachObject:"#suggest2"});
	});
</script>
	<script type="text/javascript">
		 jQuery(document).ready(function() {
		     jQuery(".xtable tr").mouseover(function() {   
		         jQuery(this).addClass("ovr");  
		     }).mouseout(function() {
		         jQuery(this).removeClass("ovr");
		     });
		     jQuery(".xtable tr:even").addClass("even"); 
	 	}); 
	</script>
</head>
<body>
<div class="box">

<!--表头logo、导航条-->

<jsp:include page="top.jsp"></jsp:include>

<!--中间内容-->	

    <div class="main">

   <div class="main1"> 	

		<div>

	<div class="left">

<!--快速查询-->
	        <form action="ArrangeInfo!searchForTickets" method="post">
        	<div id="kuaisuchaxun">

        	 	<div id="kuaisuchaxun-top"></div>

			  	<div id="kuaisuchaxun-left"></div>

			  	<div id="kuaisuchaxun-main">

					<form action="ArrangeInfo!searchForTickets" method="post">

						<div id="kuaisuchaxun-main-chufachengshi">
						<input type="hidden" name="arrcity_3word" id="arrcity_3word" value="" />

							<div class="kuaisuchaxun-main-wenzi">出发城市：</div>

							<div> <input name="flightArrange.flight.start_flight" id="start_flight" type="text" size="20"/></div>
							 <div id='suggest' style="text-align: left;" class="ac_results"> </div>
						</div>

						<div id="kuaisuchaxun-main-daodachengshi">

							<div class="kuaisuchaxun-main-wenzi">到达城市：</div>

							<div> <input name="flightArrange.flight.end_flight" id="end_flight" type="text" size="20"/></div>
								 <div id='suggest2' style="text-align: left;" class="ac_results"></div>
						</div>

					  	<div id="kuaisuchaxun-main-chufariqi">

					 	 	<div class="kuaisuchaxun-main-wenzi">出发日期：</div>

					    	<div><input name="startDate" id="startDate" type="text" size="20"/></div>

					 	</div>

						<div id="kuaisuchaxun-main-anniu"><input type="image" src="<%=basePath %>images/sousuo.gif" />

                         </div>

					</form>

				</div>

			  	<div id="kuaisuchaxun-right"></div>

			  	<div id="kuaisuchaxun-bottom"></div>

			</div>
			</form>

			<!--最新公告-->

            <div id="zuixingonggao">

        	 	<div id="zuixingonggao-top">

					<div class="main-wenzi-gengduo"><a href="NoticeInfo!getAllNoticeInfo" class="STYLE2">更多>></a></div>

				</div>

			  	<div id="zuixingonggao-left"></div>

			  	<div id="zuixingonggao-main">
			  	<s:iterator value="noticeList">
			       		<a href="NoticeInfo!getNoticeInfoByID?notice.id=<s:property value="id"/>">•<s:property value="title"/>----<s:property value="createDate"/></a><br />
        	   </s:iterator>
			  	
			  	</div>

			  	<div id="zuixingonggao-right"></div>

			  	<div id="zuixingonggao-bottom"></div>

			</div>



        </div>

	</div>

	<div class="right">

<!--滚动广告-->

            <div id="gundongguangao">

				<div class="wrapper">

	 				<div id="focus">

						<ul>

							<li><a href="#" target="_blank"><img src="images/haokong_08.gif" alt="images/haokong_08.gif"/></a></li>

							<li><a href="#" target="_blank"><img src="images/zhanshi2.jpg" alt="images/zhanshi2.jpg" /></a></li>

							<li><a href="#" target="_blank"><img src="images/zhanshi3.jpg" alt="images/zhanshi3.jpg" /></a></li>

							<li><a href="#" target="_blank"><img src="images/zhanshi4.jpg" alt="images/zhanshi4.jpg" /></a></li>

							<li><a href="#" target="_blank"><img src="images/zhanshi5.jpg" alt="images/zhanshi5.jpg" /></a></li>

						</ul>

					</div>

				</div>

			</div>

		

<!--热门航线-->

            <div id="remenhangxian">

        	 	<div id="remenhangxian-top">

					<div class="main-wenzi-gengduo"><a href="#" class="STYLE2">更多>></a></div>

				</div>

			  	<div id="remenhangxian-left"></div>

			  	<div id="remenhangxian-main">
             <div id="globallink">
		<ul>
			<li><a href="#">北京-杭州</a></li>
			<li><a href="#">北京-杭州</a></li>
			<li><a href="#">北京-杭州</a></li>
			<li><a href="#">北京-杭州</a></li>
			<li><a href="#">北京-杭州</a></li>
			<li><a href="#">北京-杭州</a></li>
			<li><a href="#">北京-杭州</a></li>
			<li><a href="#">北京-杭州</a></li>
			<li><a href="#">北京-杭州</a></li>
			<li><a href="#">北京-杭州</a></li>
			<li><a href="#">北京-杭州</a></li>
			<li><a href="#">北京-杭州</a></li>
			<li><a href="#">北京-杭州</a></li>
			<li><a href="#">北京-杭州</a></li>
			<li><a href="#">北京-杭州</a></li>
			<li><a href="#">北京-杭州</a></li>
			<li><a href="#">北京-杭州</a></li>
			<li><a href="#">北京-杭州</a></li>
		</ul>
			</div>


				</div>

			  	<div id="remenhangxian-right"></div>

			  	<div id="remenhangxian-bottom"></div>
				

		</div>

	</div>



<!--航班公布-->

            <div id="banner">
					
        	 	<div id="banner-1">
        	 	
        	 	
        	 	
        	 	</div>

			  	<div id="banner-2">
			  	
			  	</div>

			  	<div id="banner-3">
			  	
			  	</div>

			  	<div id="banner-5">
			  	
			  	<div class="main-wenzi-gengduo"><a href="ArrangeInfo!getAllFlightArrangeInfo" class="STYLE2">更多>></a></div>
			  	<div class="table">
			  	
			  	</div>
			  	<table width="820" height="200" class="xtable" border="0" align="center" cellpadding="0" cellspacing="0">
			  	
    <tbody>
	<s:iterator value="flightArrangeList">
      <tr>
        <td height="20" width="8%" align="center">
        	<s:property value="flight.flight_name"/>
        </td>
        <td height="40" width="12%" align="center">
        	<s:property value="startDate"/> 
        </td>
        <td height="40" width="10%" align="center">
        	<s:property value="flight.start_flight"/>
        </td>
        <td height="40"  width="10%" align="center">
        	<s:property value="flight.end_flight"/>
        </td>
        <td height="40" width="10%" align="center">
        	<s:property value="flight.flight_type"/>
        </td>
        <td height="40" width="10%" align="center">
        	<s:property value="ticketsNum"/>
        </td>
        <td height="40" width="10%" align="center">
        	￥<s:property value="flight.price"/>
        </td>
		<td height="35" width="10%" align="center">
		<s:if test="#session.Logined != null">
			<a onClick="this.disabled=true" href="OrderInfo!addShoppingCartById?flightArrange.id=<s:property value="id"/>&id=<s:property value="#session.Logined.id"/>">
				<img onClick="this.disabled=true" border="0" alt="预订" src="<%=basePath %>images/reboot.gif"/>
			</a>
		</s:if>
		<s:else>
			<a href="jsp/login.jsp"><img border="0" alt="预订" title="登录后才能预订机票" src="<%=basePath %>images/rebootBack.gif"/></a>
		</s:else>
		</td>
      </tr>
      </s:iterator>
	  </tbody>
	  </table>
			  	
			  	
			  	</div>



					



				</div>

				<div id="banner-4">
				
				
				</div>

			</div>	

    </div>

<!--版权声明-->

    
    <div class="bottom">
    
    <table width="100%" border="0"  class="STYLE4" style="font-size: 12px" >
    <tr>
    <td><br/></td>
    </tr>
      <tr  >
        <td align="center">友情链接：<a href="http://www.google.com">Google </a>| <a href="http://cn.bing.com">Bing </a>| <a href="http://www.baidu.com">百度</a></td>
      </tr>
      <tr>
        <td align="center">邮箱地址：0100121215@live.com 联系电话：001401001</td>
      </tr>
      <tr>
        <td align="center">Copyright&copy; 2011-2013 版权所有AIRLINE.COM</td>
      </tr>
    </table>
    
     </div>
    	
    
    

</div>	

</div>



</div>
 <script type="text/javascript">
	Calendar.setup( {
		inputField : "startDate",
		ifFormat : "%Y-%m-%d",
		showsTime : "true",
		button : "startDate",
		step : 1
	});
</script>

</body>

</html>

